//package com.zlj.xialiao.exception;
//
//import org.springframework.core.Ordered;
//import org.springframework.core.annotation.Order;
//import org.springframework.stereotype.Component;
//import org.springframework.web.servlet.HandlerExceptionResolver;
//import org.springframework.web.servlet.ModelAndView;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.io.IOException;
//
///**
// * @author 郑霖俊
// * @create 2021-05-24 9:35
// */
//@Component
////@Order(value = Ordered.HIGHEST_PRECEDENCE)
//public class CustomerHandlerException implements HandlerExceptionResolver{
//    @Override
//    public ModelAndView resolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) {
//
//        try {
//            response.sendError(511,"我喜欢的错误");
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
//        return new ModelAndView();
//    }
//}
